//
//  NewsDetailVC.m
//  优学荟管理系统
//
//  Created by edz on 2018/2/27.
//  Copyright © 2018年 星道三好. All rights reserved.
//
#import "OrdinaryMessageVController.h"
#import "NewsDetailVC.h"
#import "NewsSheetViewController.h"
@interface NewsDetailVC ()

@end

@implementation NewsDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"资讯详情";
    
    self.view.backgroundColor=RGBColor(245, 245, 245);
    
    UIBarButtonItem *barButton = [[UIBarButtonItem alloc]initWithTitle:@"资讯列表" style:UIBarButtonItemStylePlain target:self action:@selector(newsSheet)];
    self.navigationItem.rightBarButtonItem = barButton;
    [self setUI];
}
-(void)newsSheet
{
    NewsSheetViewController *vc =[NewsSheetViewController new];
    [self.navigationController pushViewController:vc animated:YES];
}
-(void)setUI
{
    
    UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 60, 60)];
    [self.view addSubview:btn];
    btn.backgroundColor=[UIColor redColor];
    [btn addTarget:self action:@selector(view1) forControlEvents:UIControlEventTouchUpInside];
    
//    UIWebView *webView = [[UIWebView alloc]init];
//    [self.view addSubview:webView];
//    
//    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.url]];
//    [webView loadRequest:request];
}
-(void)view1
{
    OrdinaryMessageVController *vc =[OrdinaryMessageVController new];
    [self.navigationController pushViewController:vc animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
